<%-- 
    Document   : quanlycathi
    Created on : Sep 17, 2012, 3:12:41 AM
    Author     : Odotube
--%>

<%@page import="thitracnghiem.DateTimeUtil"%>
<%@page import="java.util.ArrayList"%>
<%@page import="thitracnghiem.CaThi"%>
<%@page import="thitracnghiem.GiaoVien"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <%@include file="/menuad.html"%>
        <%
            session = request.getSession();
            GiaoVien gv = (GiaoVien) session.getAttribute("gv");
            
            if (gv == null) {
                response.sendError(403);
                return;
            } else if (!gv.getUsername().equals("admin")) {
                response.sendError(403);
                return;
            }
            String s = request.getParameter("tb");
            if (s == null) {
                s = "";
            }
            out.println(s);
            CaThi.Open();
            StringBuilder ms = CaThi.getViewDSCaThi();
            CaThi.Close();
            out.println(ms);
        %>
   
    </body>
</html>
